<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  let div1=document.getElementById("div1")
  div1.addEventListener("click",function(e) {
    console.log("div1")
    e.stopPropagation()
    e.preventDefault()
  },false)
</script>

</html>